package cn.supermaster.management.web.service.system;

import cn.supermaster.management.common.domain.SystemMenu;
import cn.supermaster.management.common.domain.SystemRole;
import cn.supermaster.management.common.entity.Ztree;
import cn.supermaster.management.common.response.WebResponse;
import org.springframework.ui.ModelMap;

import java.util.List;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.web.service.system
 * @ClassName: ISMenuService
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/1/12 0:34
 * @Version: V1.0
 * @Copyright: 2021 www.super-bytecode.comn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
public interface ISMenuService {

    /*
     * ================================================
     *  页面跳转功能实现
     * ================================================
     */

    /**
     * @Description: [跳转菜单页面]
     * <p></P>
     * @Title: skipMenuIndexHtml
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Return: java.lang.String
     */
    String skipMenuIndexHtml();

    /**
     * @Description: [跳转菜单新增界面]
     * <p></P>
     * @Title: skipAddMenuHtml
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: modelMap
     * @Param: parentId
     * @Return: java.lang.String
     */
    String skipAddMenuHtml(ModelMap modelMap, Long parentId);

    /**
     * @Description: [跳转修改菜单界面]
     * <p></P>
     * @Title: skipModifyMenuHtml
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: modelMap
     * @Param: menuId
     * @Return: java.lang.String
     */
    String skipModifyMenuHtml(ModelMap modelMap, Long menuId);

    /**
     * @Description: [跳转选择菜单图标界面]
     * <p></P>
     * @Title: skipMenuIconHtml
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Return: java.lang.String
     */
    String skipMenuIconHtml();

    /**
     * @Description: [跳转选择菜单树界面]
     * <p></P>
     * @Title: skipSelectMenuTreeHtml
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: modelMap
     * @Param: menuId
     * @Return: java.lang.String
     */
    String skipSelectMenuTreeHtml(ModelMap modelMap, Long menuId);


    /*
     * ================================================
     *  Rest功能实现
     * ================================================
     */

    /**
     * @Description: [根据条件获取菜单列表]
     * <p></P>
     * @Title: queryMenuListByCondition
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: menu
     * @Return: java.util.List<cn.supermaster.management.common.domain.SystemMenu>
     * @Throws:
     */
    List<SystemMenu> queryMenuListByCondition(SystemMenu menu);

    /**
     * @Description: [删除菜单]
     * <p></P>
     * @Title: doRemoveMenuInformation
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: menuId
     * @Return: cn.supermaster.management.common.response.WebResult
     */
    WebResponse doRemoveMenuInformation(Long menuId);

    /**
     * @Description: [新增保存菜单]
     * <p></P>
     * @Title: doAddMenuInformation
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: menu
     * @Return: cn.supermaster.management.common.response.WebResult
     */
    WebResponse doAddMenuInformation(SystemMenu menu);

    /**
     * @Description: [修改保存菜单]
     * <p></P>
     * @Title: doMofifyMenuInformation
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: menu
     * @Return: cn.supermaster.management.common.response.WebResult
     */
    WebResponse doMofifyMenuInformation(SystemMenu menu);

    /**
     * @Description: [校验菜单名称]
     * <p></P>
     * @Title: doCheckMenuNameUnique
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: menu
     * @Return: java.lang.String
     */
    String doCheckMenuNameUnique(SystemMenu menu);

    /**
     * @Description: [加载角色菜单列表树]
     * <p></P>
     * @Title: loadRoleMenuTreeInformation
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Param: role
     * @Return: java.util.List<cn.supermaster.management.common.entity.Ztree>
     */
    List<Ztree> loadRoleMenuTreeInformation(SystemRole role);

    /**
     * @Description: [加载所有菜单列表树]
     * <p></P>
     * @Title: loadAllMenuTreeInformation
     * @Author: Lance Ting
     * @Date: 2021-01-12
     * @Return: java.util.List<cn.supermaster.management.common.entity.Ztree>
     * @Throws:
     */
    List<Ztree> loadAllMenuTreeInformation();
}